<?$this->load->view('temp/header');?>
<div id="login-form">
	<div class="login-banner">
	</div>
	<?=form_open('user/login', 'id="user_login_form"');?>
	<table width="150px">
		<tr>
			<td>username:</td>
			<td><?=form_input(array('type'=>'text', 'name'=>'user_name'))?></td>
		</tr>
		<tr>
			<td>password:</td>
			<td><?=form_input(array('type'=>'password', 'name'=>'user_password'))?></td>
		</tr>
		<tr>
			<td></td>
			<td><?=form_submit('submit', 'Login', 'class="myButton"');?></td>
		</tr>
		<tr>
			<td></td>
			<td><?$this->load->view('temp/flash'); ?></td>
		</tr>
	</table>
	<?=form_close();?>

</div>
<script>
	$(function(){
		$('#user_login_form').validate({
			rules: {
				user_name:'required',
				user_password:'required'
			}
		});
	});
</script>
<?$this->load->view('temp/footer');?>